{layout name="common/layout" /}
<section class="panel">
    <header class="panel-heading">
        客服权限组列表 <span class="label label-default">{php}if(empty($group)){echo 0;}else{echo count($group);}{/php}</span>
    </header>
    <div class="panel-body">
        <div class="adv-table">
            <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline" role="grid">
                <div class="row">
                    <div class="col-xs-4 pull-right text-center">
                        <a class="btn btn-primary " href="{:WebUrl('admincustom/addGroup')}">添加客服权限组</a>
                    </div>
                </div>
                <hr/>

                <table class="table">
                    <thead>
                    <tr role="row">
                        <th><input type="checkbox" value=""></th>
                        <th>权限组名</th>
                        <th>权限简介</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody >
                    {volist name="group" id="g"}
                    <tr>
                        <td><input type="checkbox"  value="{$g['id']}"></td>
                        <td>{$g['title']}</td>
                        <td>{:substr($g['desc'],0,80)}</td>
                        <td>
                            <div class="btn-group">
                                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                    操作 <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="{:WebUrl('admincustom/editgroup')}"><i class="fa fa-pencil-square-o"></i> 权限组编辑</a></li>
                                    <li><a href="#"><i class="fa fa-trash-o"></i>  删除权限组</a></li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>

            </div>
        </div>
    </div>
</section>